﻿package Message.Game
{
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SFriendRecord extends Object
    {
        public var recordId:Number;
        public var friendPlayer:SMiniPlayer;
        public var remark:String;
        public var flag:int;
        public var intimate:int;
        public var killedTimes:int;
        public var lastTalkDt:Date;
        public var lastKilledDt:Date;
        public var friendType:int;

        public function SFriendRecord()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeLong(this.recordId);
            this.friendPlayer.__write(param1);
            param1.writeString(this.remark);
            param1.writeInt(this.flag);
            param1.writeInt(this.intimate);
            param1.writeInt(this.killedTimes);
            param1.writeDate(this.lastTalkDt);
            param1.writeDate(this.lastKilledDt);
            param1.writeInt(this.friendType);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.recordId = param1.readLong();
            this.friendPlayer = new SMiniPlayer();
            this.friendPlayer.__read(param1);
            this.remark = param1.readString();
            this.flag = param1.readInt();
            this.intimate = param1.readInt();
            this.killedTimes = param1.readInt();
            this.lastTalkDt = param1.readDate();
            this.lastKilledDt = param1.readDate();
            this.friendType = param1.readInt();
            return;
        }// end function

    }
}
